﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Right_Click.aspx.cs" Inherits="Web_Demo.Right_Click" %>

<%@ Register assembly="ContextMenu" namespace="Msdn" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TreeView ID="TreeView1" runat="server">
            <Nodes>
                <asp:TreeNode Text="A" Value="A">
                    <asp:TreeNode Text="AA" Value="AA">
                        <asp:TreeNode Text="AAA" Value="AAA"></asp:TreeNode>
                    </asp:TreeNode>
                    <asp:TreeNode Text="AA1" Value="AA1"></asp:TreeNode>
                </asp:TreeNode>
                <asp:TreeNode Text="B" Value="B"></asp:TreeNode>
            </Nodes>
        </asp:TreeView>
        <br />

    
    
    <cc1:ContextMenu ID="ContextMenu2" runat="server" 
        onitemcommand="ContextMenu1_ItemCommand" AutoHide="True" >
        <ContextMenuItems>
            <cc1:ContextMenuItem CommandName="Add" Text="Add" Tooltip="" />
            <cc1:ContextMenuItem CommandName="Delete" Text="Delete" Tooltip="" />
            
            
        </ContextMenuItems>
    
    </cc1:ContextMenu>
    </div>
    </form>
</body>
</html>
